<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="Up" href="index.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Vmg" rel="Chapter" href="Vmg.html"><title>Vmg</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="index.html">Up</a>
&nbsp;</div>
<center><h1>Module <a href="type_Vmg.html">Vmg</a></h1></center>
<br>
<pre><span class="keyword">module</span> Vmg: <code class="code">sig</code> <a href="Vmg.html">..</a> <code class="code">end</code></pre>Computation of the VMG, Vitesse Made Good<br>
<hr width="100%">
<pre><span class="keyword">val</span> <a name="VALpi"></a><a href="code_VALVmg.pi.html">pi</a> : <code class="type">float</code></pre><div class="info">
The constant greek pi<br>
</div>
<pre><span class="keyword">val</span> <a name="VALangle_in_degrees_to_angle_in_float"></a><a href="code_VALVmg.angle_in_degrees_to_angle_in_float.html">angle_in_degrees_to_angle_in_float</a> : <code class="type">int -> float</code></pre><div class="info">
Convert the angle expressed in degrees
  to an angle as part of 2*.pi<br>
</div>
<pre><span class="keyword">val</span> <a name="VALvmg"></a><a href="code_VALVmg.vmg.html">vmg</a> : <code class="type">int * float * int -> float</code></pre><div class="info">
The computation of the vmg.
  We export only this value from the module<br>
<b>Returns</b> the speed in the direction goodheading.<br>
</div>
<div class="param_info"><code class="code">(heading,speed,goodheading)</code> : <code>goodheading</code> : the wished direction<br>
<code>speed</code> : the actual speed<br>
<code>heading</code> : the actual direction</div>
</body></html>